﻿Public Class list
    Inherits System.Web.UI.Page

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Request.Params("TagName") = "" Then
            GridView1.DataSourceID = "cmsqlDataSource1"
        Else
            GridView1.DataSourceID = "cmsqlDataSource2"
        End If
    End Sub

   

    Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
        Dim url As String = "cricTag.aspx?TagName=" & T1.Text
        Response.Redirect(url)
    End Sub

    Protected Sub Repeater1_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.RepeaterCommandEventArgs) Handles Repeater1.ItemCommand

    End Sub

    Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click
        Response.Redirect("addnew.aspx")
    End Sub
End Class